package com.kady.entity;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/3/27
 * \* Time: 16:45
 * \* 千峰JAVA2101班
 * \* Description: 订单详情实体
 * \
 */
public class OrderDeatil {
    /**
     * 菜详情ID
     */
    private long detailId;
    /**
     * 订单ID
     */
    private String orderId;
    /**
     * 菜品ID
     */
    private long foodId;
    /**
     * 菜品数量
     */
    private long count;
    /**
     * 菜品单价（按照是否为VIP进行赋值）
     */
    private double dePrice;

    /**
     * 菜品实体
     */
    private Food food;

    public OrderDeatil() {
    }

    /**
     * 用于餐车业务的构造器
     */
    public OrderDeatil(long foodId, long count, double dePrice, Food food) {
        this.foodId = foodId;
        this.count = count;
        this.dePrice = dePrice;
        this.food = food;
    }

    public OrderDeatil(long detailId, String orderId, long foodId, long count, Food food) {
        this.detailId = detailId;
        this.orderId = orderId;
        this.foodId = foodId;
        this.count = count;
        this.food = food;
    }

    public long getDetailId() {
        return detailId;
    }

    public void setDetailId(long detailId) {
        this.detailId = detailId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public long getFoodId() {
        return foodId;
    }

    public void setFoodId(long foodId) {
        this.foodId = foodId;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public double getDePrice() {
        return dePrice;
    }

    public void setDePrice(double dePrice) {
        this.dePrice = dePrice;
    }

    public Food getFood() {
        return food;
    }

    public void setFood(Food food) {
        this.food = food;
    }

    @Override
    public String toString() {
        return "OrderDeatil{" +
                "detailId=" + detailId +
                ", orderId='" + orderId + '\'' +
                ", foodId=" + foodId +
                ", count=" + count +
                ", dePrice=" + dePrice +
                ", food=" + food +
                '}';
    }
}
